KeyPressed function DECLARATION: KeyPressed PURPOSE: Checks if a key has been pressed on keyboard UNIT: CRT RESULT TYPE: Boolean REMARKS: KeyPressed will return TRUE if a key has been pressed and leaves its value in the buffer. It does not check the Shift, ScrollLock, NumLock, Alt, or Control keys.